package com.fegin.Hystrix.admin;

import com.fegin.bean.common.ztree.ZtreeBean;
import com.fegin.client.admin.MenuFegin;
import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author 张子艺
 * @packge com.fegin.Hystrix
 * @data 2019-01-16 10:13
 * @project currencycloud
 */
@Component
public class MenuFeginHystrix implements FallbackFactory<MenuFegin> {

    @Override
    public MenuFegin create(Throwable throwable) {
        return new MenuFegin() {
            @Override
            public List<ZtreeBean> findMenuZtree() {
                return null;
            }

            @Override
            public List<ZtreeBean> findMenuZtreeByPeople( Long loginId) {
                return null;
            }
        };
    }
}
